package com.ruoyi.base.domain;

import java.util.Date;

import com.alibaba.fastjson2.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 员工绩效对象 m_performance
 * 
 * @author ruoyi
 * @date 2024-08-09
 */
public class MPerformance extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 表id */
    private Long id;

    /** 姓名 */
    @Excel(name = "姓名")
    private String sName;

    /** 工号 */
    @JsonFormat(shape = JsonFormat.Shape.STRING)//此句为问题关键相当于吧Long转换为String
    @JSONField(serializeUsing = ToStringSerializer.class) //此处标识得在序列化的时候转换为字符串

    @Excel(name = "工号")
    private Long sId;

    /** 签订年月 */
    @JsonFormat(pattern = "yyyy-MM")
    @Excel(name = "签订年月", width = 30, dateFormat = "yyyy-MM")
    private Date signYearmonth;

    /** 签订时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "签订时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date signTime;

    /** 合同单号 */
    @Excel(name = "合同单号")
    private String contractNum;

    /** 合同名称 */
    @Excel(name = "合同名称")
    private String contractName;

    /** 项目金额 */
    @Excel(name = "项目金额")
    private Long contractMoney;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setsName(String sName) 
    {
        this.sName = sName;
    }

    public String getsName() 
    {
        return sName;
    }
    public void setsId(Long sId) 
    {
        this.sId = sId;
    }

    public Long getsId() 
    {
        return sId;
    }
    public void setSignYearmonth(Date signYearmonth) 
    {
        this.signYearmonth = signYearmonth;
    }

    public Date getSignYearmonth() 
    {
        return signYearmonth;
    }
    public void setSignTime(Date signTime) 
    {
        this.signTime = signTime;
    }

    public Date getSignTime() 
    {
        return signTime;
    }
    public void setContractNum(String contractNum) 
    {
        this.contractNum = contractNum;
    }

    public String getContractNum() 
    {
        return contractNum;
    }
    public void setContractName(String contractName) 
    {
        this.contractName = contractName;
    }

    public String getContractName() 
    {
        return contractName;
    }
    public void setContractMoney(Long contractMoney) 
    {
        this.contractMoney = contractMoney;
    }

    public Long getContractMoney() 
    {
        return contractMoney;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("sName", getsName())
            .append("sId", getsId())
            .append("signYearmonth", getSignYearmonth())
            .append("signTime", getSignTime())
            .append("contractNum", getContractNum())
            .append("contractName", getContractName())
            .append("contractMoney", getContractMoney())
            .toString();
    }
}
